<!DOCTYPE html>
<html lang="cn">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>cjdoc</title>
</head>

<body>
<div class="header">
<h2>package qt.widgets</h2>
</div>

<div class="header">
<h2 title="类 QTextEdit" class="title">类 QTextEdit</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public <span class="typeNameLabel">QTextEdit</span>
extends QWidget</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span>所有方法</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#init">init</a></span>()</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#init">init</a></span>(parent: QWidget)</code>
<div class="block">The Function is init constructor</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#append">append</a></span>(text: String)</code>
<div class="block">The Function is append</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setFontFamily">setFontFamily</a></span>(fontFamily: String)</code>
<div class="block">The Function is setFontFamily</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setPlainText">setPlainText</a></span>(plainText: String)</code>
<div class="block">The Function is setPlainText</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setHtml">setHtml</a></span>(html: String)</code>
<div class="block">The Function is setHtml</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setMarkdown">setMarkdown</a></span>(markdown: String)</code>
<div class="block">The Function is setMarkdown</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setText">setText</a></span>(text: String)</code>
<div class="block">The Function is setText</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#toPlainText">toPlainText</a></span>()</code>
<div class="block">The Function is toPlainText</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#toHtml">toHtml</a></span>()</code>
<div class="block">The Function is toHtml</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#toMarkdown">toMarkdown</a></span>()</code>
<div class="block">The Function is toMarkdown</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setFontWeight">setFontWeight</a></span>(fontWeight: FontWeight)</code>
<div class="block">The Function is setFontWeight</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setFontUnderline">setFontUnderline</a></span>(fontUnderline: Bool)</code>
<div class="block">The Function is setFontUnderline</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setFontItalic">setFontItalic</a></span>(fontItalic: Bool)</code>
<div class="block">The Function is setFontItalic</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setCurrentFont">setCurrentFont</a></span>(font: QFont)</code>
<div class="block">The Function is setCurrentFont</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setTextColor">setTextColor</a></span>(color: QColor)</code>
<div class="block">The Function is setTextColor</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#setTextBackgroundColor">setTextBackgroundColor</a></span>(color: QColor)</code>
<div class="block">The Function is setTextBackgroundColor</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#delete">delete</a></span>()</code>
<div class="block">The Function is delete</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#copy">copy</a></span>()</code>
<div class="block">The Function is copy</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#cut">cut</a></span>()</code>
<div class="block">The Function is cut</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#paste">paste</a></span>()</code>
<div class="block">The Function is paste</div>
</td>
<tr class="rowColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#undo">undo</a></span>()</code>
<div class="block">The Function is undo</div>
</td>
<tr class="altColor">
<td class="colFirst"><code>public  Unit</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="widgets.text_edit.html#redo">redo</a></span>()</code>
<div class="block">The Function is redo</div>
</td>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>方法详细资料</h3>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>
</dl>
</li>
</ul>
<a name="init">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public  init(parent: QWidget): Unit</pre>
<div class="block">The Function is init constructor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>parent</code> - of QWidget</dd>
</dl>
</li>
</ul>
<a name="append">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>append</h4>
<pre>public  append(text: String): Unit</pre>
<div class="block">The Function is append</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>text</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setFontFamily">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontFamily</h4>
<pre>public  setFontFamily(fontFamily: String): Unit</pre>
<div class="block">The Function is setFontFamily</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>fontFamily</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setPlainText">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlainText</h4>
<pre>public  setPlainText(plainText: String): Unit</pre>
<div class="block">The Function is setPlainText</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>plainText</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setHtml">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHtml</h4>
<pre>public  setHtml(html: String): Unit</pre>
<div class="block">The Function is setHtml</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>html</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setMarkdown">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarkdown</h4>
<pre>public  setMarkdown(markdown: String): Unit</pre>
<div class="block">The Function is setMarkdown</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>markdown</code> - of String</dd>
</dl>
</li>
</ul>
<a name="setText">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setText</h4>
<pre>public  setText(text: String): Unit</pre>
<div class="block">The Function is setText</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>text</code> - of String</dd>
</dl>
</li>
</ul>
<a name="toPlainText">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toPlainText</h4>
<pre>public  toPlainText(): String</pre>
<div class="block">The Function is toPlainText</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>String Type of String</dd>
</dl>
</li>
</ul>
<a name="toHtml">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toHtml</h4>
<pre>public  toHtml(): String</pre>
<div class="block">The Function is toHtml</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>String Type of String</dd>
</dl>
</li>
</ul>
<a name="toMarkdown">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toMarkdown</h4>
<pre>public  toMarkdown(): String</pre>
<div class="block">The Function is toMarkdown</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>String Type of String</dd>
</dl>
</li>
</ul>
<a name="setFontWeight">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontWeight</h4>
<pre>public  setFontWeight(fontWeight: FontWeight): Unit</pre>
<div class="block">The Function is setFontWeight</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>fontWeight</code> - of FontWeight</dd>
</dl>
</li>
</ul>
<a name="setFontUnderline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontUnderline</h4>
<pre>public  setFontUnderline(fontUnderline: Bool): Unit</pre>
<div class="block">The Function is setFontUnderline</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>fontUnderline</code> - of Bool</dd>
</dl>
</li>
</ul>
<a name="setFontItalic">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFontItalic</h4>
<pre>public  setFontItalic(fontItalic: Bool): Unit</pre>
<div class="block">The Function is setFontItalic</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>fontItalic</code> - of Bool</dd>
</dl>
</li>
</ul>
<a name="setCurrentFont">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCurrentFont</h4>
<pre>public  setCurrentFont(font: QFont): Unit</pre>
<div class="block">The Function is setCurrentFont</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>font</code> - of QFont</dd>
</dl>
</li>
</ul>
<a name="setTextColor">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextColor</h4>
<pre>public  setTextColor(color: QColor): Unit</pre>
<div class="block">The Function is setTextColor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>color</code> - of QColor</dd>
</dl>
</li>
</ul>
<a name="setTextBackgroundColor">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextBackgroundColor</h4>
<pre>public  setTextBackgroundColor(color: QColor): Unit</pre>
<div class="block">The Function is setTextBackgroundColor</div>
<dl>

<dt><span class="paramLabel">参数:</span></dt>

<dd><code>color</code> - of QColor</dd>
</dl>
</li>
</ul>
<a name="delete">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre>public  delete(): Unit</pre>
<div class="block">The Function is delete</div>
<dl>
</dl>
</li>
</ul>
<a name="copy">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre>public  copy(): Unit</pre>
<div class="block">The Function is copy</div>
<dl>
</dl>
</li>
</ul>
<a name="cut">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cut</h4>
<pre>public  cut(): Unit</pre>
<div class="block">The Function is cut</div>
<dl>
</dl>
</li>
</ul>
<a name="paste">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paste</h4>
<pre>public  paste(): Unit</pre>
<div class="block">The Function is paste</div>
<dl>
</dl>
</li>
</ul>
<a name="undo">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>undo</h4>
<pre>public  undo(): Unit</pre>
<div class="block">The Function is undo</div>
<dl>
</dl>
</li>
</ul>
<a name="redo">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>redo</h4>
<pre>public  redo(): Unit</pre>
<div class="block">The Function is redo</div>
<dl>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>


</body>
</html>
